﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataLayer.Model.Objects;

namespace DataLayer
{
    class Converter
    {
        public static Skill XmlSkillClassToSkill(OccupationsOccupationSkill skill)
        {
            return new Skill
            {
                AccessLevel = Int32.Parse(skill.AccessLvl),
                Name = skill.Name,
                SkillType = skill.Type,
                Icon = skill.SkillIcon,
                Description = skill.Description
            };
        }
    }
}
